package com.hllxd.hism.star.basic.service.dao.mapper.doris;

import com.hllxd.hism.star.basic.service.model.dapan.DapanDimDictDefine;
import com.hllxd.hism.star.basic.service.model.dapan.DapanDimDictDefineExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DorisDapanDimDictDefineMapper {
    long countByExample(DapanDimDictDefineExample example);

    int insert(DapanDimDictDefine record);

    int insertSelective(DapanDimDictDefine record);

    List<DapanDimDictDefine> selectByExample(DapanDimDictDefineExample example);

    DapanDimDictDefine selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(DapanDimDictDefine record);

    int updateByPrimaryKey(DapanDimDictDefine record);

    int deleteByPrimaryKey(@Param("id") long id);

    int deleteByCondition(@Param("typeCode") String typeCode, @Param("itemKey")String itemKey);

    /**
     * 查询字典配置项
     *
     * @param typeCode 查询分组
     * @return 列表
     */
    List<DapanDimDictDefine> searchDimDefine(@Param("typeCode") String typeCode);
}
